module.exports = {
  /**
   * 设置 localStorage
   * @param key
   * @param value
   */
  set: function(key, content) {
    localStorage.removeItem(key);
    localStorage.setItem(key, content);
    return this;
  },
  /**
   * 获取某个 localStorage 值
   * @param key
   * @returns {*}
   */
  get: function(key) {
    return localStorage.getItem(key);
  }
};
